var pushData = 0;
var works = {
	"num1": function (a, b, c) {
		pushData += a / (b * c) ;

		return pushData;
	}
};

onmessage = function (evt) {
	var data = evt.data;
	var work = data.shift();
	var args = data;
	if (works[work]) {
		postMessage(works[work].apply(this, args));
		pushData = 0;
	} else {
		postMessage(null);
	}
};